home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Power 1997 December
/
MACPOWER-1997-12.ISO.7z
/
MACPOWER-1997-12.ISO
/
AMUG
/
PROGRAMMING
/
Raven 1.2 Examples.sit
/
Raven 1.2 Examples
/
Quill
/
Source
/
RsrcPopupMenu.h
< prev
next >
Wrap
C/C++ Source or Header
|
1997-05-11
|
1KB
|
70 lines
/*
* File: RsrcPopupMenu.h
* Function: A popup menu used for picking things like SPen and STextTrait resource.
* Written by: Jesse Jones
*
* Copyright ゥ 1997 Jesse Jones.
* For conditions of distribution and use, see copyright notice in ZTypes.h
*
* Change History (most recent first):
*
* <1> 5/11/97 JDJ Created
*/
#pragma once
#include <ZPopupMenu.h>
// ===================================================================================
// class CRsrcPopupMenu
// ===================================================================================
class CRsrcPopupMenu : public TPopupMenu {
typedef TPopupMenu Inherited;
//-----------------------------------
// Initialization/Destruction
//
public:
virtual ~CRsrcPopupMenu();
CRsrcPopupMenu(const string& name, TView* superView, const TRect& frame,
const string& title, short titleWidth, const string& mesg,
ResID menuID);
static MReanimatable* Create(MReanimatable* parent);
//-----------------------------------
// New API
//
public:
ResID GetID() const {return mRsrcID;}
void SetID(ResID id);
//-----------------------------------
// Inherited API
//
protected:
virtual void OnReanimated();
virtual void OnClickedControl();
//-----------------------------------
// Internal API
//
protected:
void DoUpdateID();
//-----------------------------------
// Member data
//
private:
ResType mRsrcType;
ResID mRsrcID;
};